package com.cloud.elm.feign;

import com.cloud.elm.feign.callback.UserFeignClientCallback;
import com.cloud.elm.po.User;
import com.cloud.elm.utils.response.ResultBody;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(name = "user-server", fallback = UserFeignClientCallback.class)
public interface UserFeignClient {
    @GetMapping("/elm/UserController/user/info/{userId}")
    ResultBody<User> getUserInfoById(@PathVariable("userId") String userId);
}
